package com.kingwang.demo.springsecuritytokendemo.security;

import org.springframework.security.core.userdetails.UserDetails;

/**
 * 根据Token ID获取用户信息的接口
 *
 * @author King
 */
public interface TokenUserDetailsService {
    /**
     * 根据Token ID获取用户信息
     *
     * @param tokenSessionId
     * @return
     */
    UserDetails loadUserByToken(String tokenSessionId);
}
